package com.major.recursion.migong;

public class MiGong {
    public static void main(String[] args) {
        // 设置迷宫
        int[][] map = new int[8][7];
        for (int i = 0; i < 7; i++) { //上下为1
            map[0][i] = 1;
            map[7][i] = 1;
        }
        for (int i = 0; i < 8; i++) { //左右为1
            map[i][0] = 1;
            map[i][6] = 1;
        }
        map[3][1] = 1;
        map[3][2] = 1;
        map[2][2] = 1;

        for (int[] row : map) {
            for (int i : row) {
                System.out.print(" " + i);
            }
            System.out.println();
        }

        System.out.println("+++++++++++++++++");
        SetWay.setWay(map, 1, 1);
        for (int[] row : map) {
            for (int i : row) {
                System.out.print(" " + i);
            }
            System.out.println();
        }
    }
}
